# added by yinchao, Mon June 24 17:46	2024

import urllib.request

img = urllib.request.urlopen('http://data.pr4e.org/cover3.jpg')

fhand = open('cover3.jpg', 'wb')

while True:
    portion_img = img.read(100_000)
    if len(portion_img) < 1:
        break

    fhand.write(portion_img)

fhand.close()
